package com.xctech.iot.mqtt.sdk.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * <pre>
 * mqtt 连接配置
 * </pre>
 *
 * @author: feihu.liang
 * @since: 2024/4/11 13:53
 */
@Data
@Component
public class MqttConfig {

    //@Value("${mqtt.hostUrl}")
    private String hostUrl = "tcp://192.168.110.244:1883";

    //@Value("${mqtt.username}")
    private String username = "xciot_device";

    //@Value("${mqtt.password}")
    private String password = "RDoQN5bgCX66";

    private String productId = "1790581251605499904";

    private String deviceId = "1790584675474575360";

    private String clientId  = "1790584675474575360_1790581251605499904";

    private Integer completionTimeout = 30;

    private Integer keepAlive = 180;

    private Integer inflight = 10000;

    private String willMessage = "close";

}
